﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;
using GCELibrary.Current;
using ZF.BLL.Page;

namespace ZF.WS.news
{
    public partial class lfitup : PageBase
    {
        [PageArgument(Key = "tid",CanNull= false)]
        public int TypeId { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {
                var list = dc.I_Fitup.Where(p => p.TypeId == this.TypeId).OrderByDescending(p => p.AddTime);
                this.lvNews.DataSource = list;
                this.lvNews.DataBind();
            }
        }
    }
}
